using System;
using UnityEngine;

public class SkinResizePipe : SkinResizeListener
{
	[Serializable]
	public class EditorReferences
	{
		public Transform upTransform;

		public float minSize = 1f;

		public float maxSize = 20f;
	}

	[SerializeField]
	public EditorReferences references = new EditorReferences();

	public override void OnSizeChanged(float ratio)
	{
		references.upTransform.localScale = new Vector3(1f, Mathf.Lerp(references.minSize, references.maxSize, ratio), 1f);
	}
}
